package com.bussiness.system.dao;

import com.bussiness.system.model.MyDeptPostsEntity;
import com.common.util.mypage.Pages;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface MyDeptPostsDao {
    int deleteByPrimaryKey(Long id);

    int insert(MyDeptPostsEntity record);

    int insertSelective(MyDeptPostsEntity record);

    MyDeptPostsEntity selectByPrimaryKey(Long id);

    List<MyDeptPostsEntity> selectAll();

    List<MyDeptPostsEntity> getDeptByParentId(Long parentId);

    List<MyDeptPostsEntity> pageDeptByParentId(Pages pages);

    int updateByPrimaryKeySelective(MyDeptPostsEntity record);

    int updateByPrimaryKey(MyDeptPostsEntity record);

    List<Map> selectUrlByUserId(Long userId);

    List<Map> selectUrlAll();

    List<Map<String, Object>> listAuthByUserId(Long userId);

}